﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class OrdersBLL
    {
        public DataTable Select(string TableName)
        {
            return new OrdersDAL().Select(TableName);
        }
        public bool Sh(int a, int id)
        {
            return new OrdersDAL().Sh(a, id);
        }
        public DataTable FY(string TableName, int YM)
        {
            return new OrdersDAL().FY(TableName, YM);
        }
        public bool Add(OrdersModel model)
        {
            return new OrdersDAL().Add(model);
        }
        public bool Gai(OrdersModel model, int id)
        {
            return new OrdersDAL().Gai(model, id);
        }
        public OrdersModel GetModelByID(string TableName, int id)
        {
            return new OrdersDAL().GetModelByID(TableName, id);
        }
        public bool Del(string TableName, int id)
        {
            return new OrdersDAL().Del(TableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new OrdersDAL().SelectNo(tableName, mz);
        }

        public object SelectName(string tableName, string mz)
        {
            return new OrdersDAL().SelectName(tableName, mz);
        }

        public DataTable A()
        {
            return new OrdersDAL().A();
        }
    }
}
